<!DOCTYPE HTML>
<html lang="zh-cn">
<head>
<meta charset="utf-8" />
<title>{model.name}|鸿马</title>
<meta name="description" content="<%cutstring({model.describe},180)%>" />
<meta name="keywords" content="{model.name}，网站设计， 网站建设，网站，高端建站" />
<meta content="Copyright 2012 ihongma.com" name="copyright" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="stylesheet" href="{config.templateskin}/css/global.css" type="text/css" media="screen" />
<script type=text/javascript src="{config.templateskin}/js/jquery-1.7.1.min.js"></script>
<!--[if lt IE 9]><script src="{config.templateskin}/js/html5.js"></script><![endif]-->
</head>
<body>

 <%template src=/header.html/%>

<div class="inside">  
  <div class="content mtop" style="overflow:hidden;">
    <div class="item_details">
      
      <script src="{config.templateskin}/js/slides.min.jquery.js"></script>
      <script>
		$(function(){
			// Set starting slide to 1
			var startSlide = 1;
			// Get slide number if it exists
			if (window.location.hash) {
				startSlide = window.location.hash.replace('#','');
			}
			// Initialize Slides
			$('#slides').slides({
				preload: true,
				preloadImage: '{config.templateskin}/images/loader.gif',
				generatePagination: true,
				play: 5000,
				pause: 2500,
				hoverPause: true,
				// Get the starting slide
				start: startSlide,
				animationComplete: function(current){
					// Set the slide number as a hash
					window.location.hash = '#' + current;
				}
			});
		});
      </script>
      <div class="sliderwinner">
        <div id="example">
          <div id="slides">
            <div class="slides_container">
             <%csharp%>
            System.Collections.Generic.List<ihongma.Model.web_photo> photomodel=model.Photolist;
     StringBuilder strtag = new StringBuilder();
         string showtag;
         System.Web.Script.Serialization.JavaScriptSerializer java = new System.Web.Script.Serialization.JavaScriptSerializer();
	     
     foreach(ihongma.Model.web_photo  phtom in photomodel)
     {
        strtag.Append(GetAlbumHtml(phtom.id.ToString(),java.Serialize(phtom.Taglist)));
           
       <%/csharp%>
              <div class="pngfix slide"><span class="img photo-container"><img alt=""   id="photo{phtom.id}" name="photo{phtom.id}" src="{phtom.big_img}" ></span></div>
            <%csharp%>
            
            }
             showtag = "{" + strtag.ToString() + "}";
             if (showtag.EndsWith(",}"))
             {
                 showtag = showtag.Remove(showtag.Length - 2, 1);
             }
            <%/csharp%>
           
    <script src="../../scripts/phototagger.jquery.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../scripts/coldfusion.json.js"></script>
            <script type="text/javascript">
    var agegaglist ='{showtag}';

       // alert( eval('('+agegaglist+')')[0]);
           $(function () {
               $("span.photo-container").photoTagger({
            loadURL: agegaglist,
            saveURL: "./save_Tag.cfm",
            deleteURL: "./delete_tag.cfm",
            cleanAJAXResponse: cleanColdFusionJSONResponse
        });
     
    });
    
    </script>
            <!--  <div class="pngfix slide"><span class="img"><img alt="" src="cs_images/range2.jpg" width=700 height=390></span></div>
              <div class="pngfix slide"><span class="img"><img alt="" src="cs_images/range3.jpg" width=700 height=390></span></div>-->
            </div>
          </div>
        </div>
      </div>
      
      <div class="item_info">
        <h4>项目点评：</h4>
        <div class="item_info_p">
          <p>{model.dianping}
          </p>
         <!-- <div>
            asdasdasd
          </div>-->
        </div>
      </div>
      
    </div>
    <div class="item_col">
      <h3>{model.name}</h3>
      <div class="credits">
 <%csharp%>
    string locktexs=model.state==1?"解锁":"已解锁";
string taglist=model.tags.Contains(",")?model.tags.Split(',')[0]:model.tags;
       <%/csharp%>
        <p><span>状态：</span>{locktexs}</p>
        <p><span>网站：</span><a href="{model.weburl}" target="_blank"> {model.weburl} </a></p>
      </div>
      <h4>描述：</h4>
      <p class="italic">{model.describe}</p>
      <h4>标签：</h4>
      <p class="tags">
        <%set (DataTable){tag_list2}=get_tags_list("id in ("+{model.tags}+")")%>
        <%loop tagr12 tag_list2%> <a href="<%linkurl("design_list2",{tagr12[id]},1)%> ">{tagr12[name]}</a><%/loop%>
       
      </p>
    </div>
    
    <div class="item_cate">
      <h4>相关类别：</h4>
      <script type=text/javascript src="{config.templateskin}/js/ihongma_p.js"></script>
      <div class="item_cate_listsites">
        <ul class="c_listsites" style="width:255px;">
<%set (DataTable){article_list5}=get_website_list(11,4, "tags like '%"+{taglist}+"%' and id<>"+{model.id}+" ")%>
     <%loop adr5 article_list5%>
  <%csharp%>
    string locktex=adr5["state"].ToString()=="1"?"当前锁定状态，可以购买":"当前解锁状态";


    string lockclass = adr5["state"].ToString() == "1" ? "lock" : "unlock";
    <%/csharp%>
      <li class="list_site">
        <div class="website"><a href="<%linkurl("design_show",{adr5[id]})%>"><img src="{adr5[img]}" ></a></div>
        <div class="info"><a href="<%linkurl("design_show",{adr5[id]})%>"><span class="{lockclass}"></span><p>{locktex}</p></a></div>
        <div class="name"><a href="<%linkurl("design_show",{adr5[id]})%>">{adr5[name]}</a></div>
        <div class="state"><a class="{lockclass}" title="{locktex}">{locktex}</a></div>
        <div class="tag">标签: 
        
        <%set (DataTable){tag_list}=get_tags_list("id in ("+{adr5[tags]}+")")%>
        <%loop tagr1 tag_list%> <a href="<%linkurl("design_list2",{tagr1[id]},1)%>">{tagr1[name]}</a>
        
        <%/loop%></div>
      </li>
      <%/loop%>
    </ul>




     
       
        </ul>
      </div>
    </div>
    
  </div>
</div>

<%template src=/footer.html/%>

</body>
</html>
